<?php
class BWProductCooker extends BCooker
{
    public function onShowCategoryList() //初始化产品目录数据.
    {
       $indexColumn= BAEventCooker::onShowEventList();
         $updateControl->addRenderView('showView', $viewName,
                array('indexColumn' => $indexColumn));
    }
    
    public function onProductList()//获取产品展示信息 列表
    {
        $columnId = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('columnId ');
        $viewName = Blyn::app()->getUIManager()->getActiveLink()->getLinkVariable('viewName');
        $eventTable = new BAEventSheet();
        $event = $eventTable->getListById($columnId);
        $productContentTable = new BAEventSheet($event);
        $productList = $productContentTable->getView();
        $updateControl->addRenderView('showView', $viewName,
                array('productList' => $productList));
    }
}